﻿<%@ Page Language="C#" MasterPageFile="~/LMIS_Master.Master" AutoEventWireup="true" CodeBehind="EditBookInstance.aspx.cs" Inherits="LMIS_Application.EditBookInstance" Title="LIMS | Edit Book Instance" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
<div>
    <table>
        <tr>
            <td colspan=2><h2>Edit Book Copy</h2></td>
        </tr>
        <tr>
            <td>Book Copy ID:</td><td>
                <asp:TextBox ID="tbBookCopyID" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_EBI_BCI" runat="server" 
                    ControlToValidate="tbBookCopyID" ErrorMessage="*" ValidationGroup="vg_EBI_2"></asp:RequiredFieldValidator>
                    </td>
        </tr>
        <tr><td></td><td>
            <asp:Button ID="btnFillBookInfo" runat="server" Text="Get Book Copy details" 
                onclick="btnFillBookInfo_Click" ValidationGroup="vg_EBI_2" /></td></tr>
        <tr>
            <td>Book ID:</td><td>
                    <asp:TextBox ID="tbBookId" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_EBI_BookID" runat="server" 
                        ControlToValidate="tbBookId" ErrorMessage="*" ValidationGroup="vg_EBI"></asp:RequiredFieldValidator>
                    </td>
        </tr>
        <tr>
            <td>Status:</td><td>
                    <asp:TextBox ID="tbStatus" runat="server"></asp:TextBox>
                    <asp:RangeValidator ID="rv_EBI_Status" runat="server" 
                        ControlToValidate="tbStatus" ErrorMessage="0 or 1" MaximumValue="1" 
                        MinimumValue="0" Type="Integer" ValidationGroup="vg_EBI"></asp:RangeValidator>
                    </td>
        </tr>
        <tr>
            <td></td><td>
            <asp:Button ID="btnEditBook" runat="server" Text="Edit Book" 
                onclick="btnEditBook_Click" ValidationGroup="vg_EBI" />
            </td>
        </tr>
        <tr><td colspan=2><asp:Label ID="info" runat="server" ForeColor="Red"></asp:Label></td></tr>
    </table>
    </div>
</asp:Content>
